#import <UIKit/UIKit.h>

IB_DESIGNABLE

typedef void (^YLImageViewRatioCallBack)(BOOL isSucc,CGFloat ratio);

@interface YLImageView : UIImageView

// 圆角弧度
@property (nonatomic,assign) IBInspectable CGFloat cornerRadius;
// 边框宽度
@property (nonatomic,assign) IBInspectable CGFloat borderWidth;
// 边框颜色
@property (nonatomic,copy) IBInspectable UIColor *borderColor;
// 圆形化
@property (nonatomic,assign) IBInspectable BOOL isRound;

// 图片下载地址 From 网络
@property (nonatomic,copy) NSString *imageUrl;
// 默认图
@property (nonatomic,copy) NSString *imageHolder;

// 下载图片并返回图片宽高比
-(void)dowload:(NSString*)url callBack:(YLImageViewRatioCallBack)callBack;

@end
